home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / macros / metanet / makefile < prev    next >
Makefile  |  1999-09-16  |  1KB  |  42 lines

  1. SHELL = /bin/sh
  2.  
  3. SCIDIR=../..
  4. include ../../Makefile.incl
  5.  
  6. .SUFFIXES: .sci .bin $(SUFFIXES)
  7.  
  8. NAME = metalib
  9. NAM = metanet
  10.  
  11. MACROS= %cigra.sci %grae.sci %sigra.sci adj_lists.sci \
  12.     check_graph.sci circuit.sci con_nodes.sci connex.sci find_path.sci \
  13.     graph_2_mat.sci is_connex.sci load_graph.sci make_graph.sci \
  14.     mat_2_graph.sci max_cap_path.sci max_flow.sci metanet.sci \
  15.     min_lcost_cflow.sci min_lcost_flow1.sci min_lcost_flow2.sci \
  16.     min_qcost_flow.sci \
  17.     min_weight_tree.sci nodes_2_path.sci path_2_nodes.sci \
  18.     plot_graph.sci plot_graph1.sci plot_graph2.sci \
  19.     save_graph.sci shortest_path.sci \
  20.     show_arcs.sci show_graph.sci show_nodes.sci \
  21.     strong_con_nodes.sci strong_connex.sci \
  22.     trans_closure.sci    
  23.  
  24. OBJ = $(MACROS:.sci=.bin)
  25. MACROSN = $(MACROS:.sci=)
  26.  
  27. all:: $(OBJ) lib
  28.  
  29. lib: $(OBJ) names
  30.     @echo generating lib and names
  31.     @$(SCIDIR)/bin/scilab -lib $(NAME) SCI/macros/$(NAM)
  32.  
  33. names: $(OBJ)
  34.     @$(RM) names;touch names;
  35.     @for i in $(MACROSN); do  (echo $$i >> names );done
  36.  
  37. distclean::
  38.     $(RM) lib names *.bin
  39.  
  40. .sci.bin:
  41.     @$(SCIDIR)/bin/scilab -comp  $*.sci
  42.